package com.hk.dao;

import com.hk.entity.CourseInfo;
import com.hk.entity.Teacher;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface TeacherDao {
    /**
     * 增加教师
     * @param teacher
     */
    void TeacherAdd(Teacher teacher);

    /**
     * 批量删除教师
     * @param ids
     */
    void delete(@Param("ids") List<Integer> ids);

    /**
     * 根据id查询教师，查询回显
     * @param id
     * @return
     */
    Teacher getById(Integer id);

    void update(@Param("teacher") Teacher teacher);

    List<Teacher> queryAll();

    List<Teacher> searchTea(Teacher teacher);


    List<Teacher> getByIdInfo(Integer id);

    void deleteInfo(List<Integer> ids);

    void addCourse(CourseInfo courseInfo);

    List<CourseInfo> getByIdInfos(@Param("empId") String empId);

    void UpdataInfo(CourseInfo courseInfo);
}
